﻿@model Pro260Website.Models.ListingViewModel<Domain.Entity.Game>

@{
    ViewBag.Title = "Upcoming Games";
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])">Upcoming Games</h2>
@if (Model.Items.Count() > 0)
{
    foreach (var game in Model.Items)
    {
        Html.RenderPartial("GameSummary", game); <br/>
    }
}
else
{
    @: There are no upcoming games in our database.
}
    <div id="pagerForm" class="pager @Html.GetColor(Request.Cookies["color"])">
        @Html.PageLinks(Model.PagingInfo, i => Url.Action("List", "Game", new { searchFor = Model.QueryInfo.QueryString, page = i, pageSize = Model.PagingInfo.ItemsPerPage }))
    </div>

